Fix #257 (#258)
authorRudi Grinberg <me@rgrinberg.com>
Mon, 17 Aug 2020 23:58:31 +0000 (07:58 +0800)
committerGitHub <noreply@github.com>
Mon, 17 Aug 2020 23:58:31 +0000 (19:58 -0400)
commite48e190a75a0c176e1deac218b891e77792d6921
treef9ee570d9d52ffc0a21bd797d9ded39d56f4e9cc
parent3642c11d5ef9be3c6fb9edb8fd5ec3c370abd889
Fix #257 (#258)

* Add test for #257

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
* Fix #257

Explicitly distinguish between replacing with `nil` and not replacing at
all.

I'm also simplifying the code by making all the branches more explicit.
This is a little longer, but makes all the clauses obvious.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
which-key-tests.el
which-key.el